using Shared; using Shared.SimpleControl; using Shared.SimpleControl.R; using System; using System.Collections.Generic; using System.Text; using System.Xml; using SmartHome; namespace Shared.SimpleControl.Phone.Music { /// /// DLNA服务器播放音乐列表 /// class A31DlnaListMusic : FrameLayout { bool isExited; public void show (DLNAServer dlnaServer, string listName, List list) { AddChidren (new Button { Height = Application.GetRealHeight (36), BackgroundColor = SkinStyle.Current.MusicTopFrameLayout, }); var topFrameLayout = new FrameLayout { Height = Application.GetRealHeight (100), Y = Application.GetRealHeight (36), BackgroundColor = SkinStyle.Current.MusicTopFrameLayout, }; AddChidren (topFrameLayout); var musiclist = new Button { Text = listName, TextColor=SkinStyle.Current.MusicTextColor, }; topFrameLayout.AddChidren (musiclist); var hdl = new Button { Width = Application.GetRealWidth (154), Height = Application.GetRealHeight (90), X = Application.GetRealWidth (486), Gravity = Gravity.CenterVertical, UnSelectedImagePath = MainPage.LogoString, }; topFrameLayout.AddChidren (hdl); var back = new Button { Width = Application.GetRealWidth (82), Height = Application.GetRealHeight (89), X = Application.GetRealWidth (10), Gravity = Gravity.CenterVertical, UnSelectedImagePath = "MusicIcon/HomepageBack.png", }; topFrameLayout.AddChidren (back); back.MouseDownEventHandler += (sender, e) => { RemoveFromParent (); isExited = true; }; VerticalScrolViewLayout middle = new VerticalScrolViewLayout (); middle.Y = topFrameLayout.Bottom; middle.Height = Application.GetRealHeight (Application.DesignHeight - 136); //middle.BackgroundColor = 0xff2F2F2F; middle.BackgroundColor = SkinStyle.Current.MusicVerticalScrolViewLayout; AddChidren (middle); var listMusicInfo = new List (); List